import axios from "axios";
// 财务
export function getFinance() {
  return axios.post("/order/index");
}
export function getFina() {
  return axios.get("/export/task");
}

// 学员统计
export function getStatistical(page, limit) {
  return axios.post("/user/statics", { page, limit });
}

// 用户，学员管理
export function getStudents(page, limit) {
  return axios.get("/user?", { params: { page: page, limit: limit } });
}
export function getBooks(query) {
  return axios.get("/books", {
    params: query
  });
}
export function addBooks() {
  return axios.post("/books", {
    author
  });
}

export function getClass() {
  return axios.get("/book/classify");
}
